/* 
 * File:   MADTCommand.c
 * Author: Muhammad Anis
 */

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

#include "Command.h"

/*
 * Driver for ADT Command
 */
int main(int argc, char** argv) {

    /* Make Command */
    Command c = MakeCommand("add",&Print);
    /* Add Instruction */
    AddInstruction(c);    
    /* isCommandExist */
    Calendar cal = MakeCalendar();
    if(isCommandExist("add")){
        /* Execute */
        Execute("add",&cal,argv);
    }else{
        printf("No Instruction available\n");
    }
    
    if(isCommandExist("new")){
        printf("Command available\n");
    }else{
        printf("No Instruction available\n");
    }
    
    return (EXIT_SUCCESS);
}



